public class QuickStartGuide {

    public  static  void main(String[] args) {
        System.out.println("Hello World!");

        Speak sp = new Speak();
        sp.speak();


        Calone col = new Calone();
        System.out.println(col.sum(1000));


        getSum gs = new getSum();
        System.out.println(gs.getSum(21,1));

    }


}


class Speak{

        String name;
        String seeak;

        public  void  speak(){
            name = "小明";
            seeak = "我是一个好人";
            System.out.println(name+seeak);
        }
}


class  Calone{
    int sum;
    public  int sum(int pam){
        sum=0;
        for (int i = 0; i < pam; i++) {
            sum+=i;
        }

        return  sum;
    }
}

class getSum{
    int sum;

    public int getSum(int p1,int p2) {
        sum = p1+p2;

        return sum;
    }
}